﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace Elderos.Ontology
{
    [DataContract]
    public class Synonym
    {
        public Synonym(int id, string syno)
        {
            ID = id;
            Syno = syno;
            EntityIDs = new List<int>(1);
        }

        [DataMember]
        public int ID { get; set; }

        [DataMember]
        public string Syno { get; set; }

        [DataMember]
        public List<int> EntityIDs { get; set; }

        public override string ToString()
        {
            return Syno + "|" + ID;
        }
    }
}
